From: Marco Trevisan (TreviƱo) Date: Thu, 8 Jun 2017 12:16:04 +0000 (+0800) Subject: shell-util: ensure we've a valid n_captures when capturing images X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~254 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4c2fd513f4c9cc208e2e6b8efd8a971082f0f99b;p=gnome-shell.git shell-util: ensure we've a valid n_captures when capturing images https://bugzilla.gnome.org/show_bug.cgi?id=765011 --- diff --git a/src/shell-util.c b/src/shell-util.c index 02db9b106..bedd5869b 100644 --- a/src/shell-util.c +++ b/src/shell-util.c @@ -461,6 +461,8 @@ shell_util_composite_capture_images (ClutterCapture *captures, cairo_surface_t *image; cairo_t *cr; + g_assert (n_captures > 0); + target_scale = 0.0; for (i = 0; i < n_captures; i++) {